import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.LineNumberReader;

public class LineNumber {

	public LineNumber(String path) {
		File file = new File(path);
		LineNumberReader reader = null;
		try {
			reader = new LineNumberReader(new FileReader(file));
			while (reader.ready()) {
				System.out.println(reader.getLineNumber() + ":"
						+ reader.readLine());

			}
		} catch (Exception e) {
		} finally {
			try {
				reader.close();
			} catch (IOException e) {

				e.printStackTrace();
			}
		}

	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		new LineNumber(args[0]);

	}

}
